package com.liuweiheng.cloudpayment8004.controller;

import cn.hutool.core.util.StrUtil;
import com.liuweiheng.base.entity.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/payment")
@Api("payment")
public class PaymentController {


    @Value("${server.port}")
    private String serverPort;


    @GetMapping("/zk")
    public R paymentZk() {
        return R.ok("springcloud for zookeeper：" + serverPort + StrUtil.uuid());
    }

}
